(function() {
    'use strict';

    /**
     * @ngdoc function
     * @name webApp.controller:GiftsCtrl
     * @description
     * # GiftsCtrl
     * Controller of the webApp
     */
    angular.module('webApp')
        .controller('GiftsCtrl', GiftsCtrl);

    GiftsCtrl.$inject = ['$scope', 'dataService', '$state', 'helper', '$location', '$rootScope', '$timeout', 'moment'];

    function GiftsCtrl($scope, dataService, $state, helper, $location, $rootScope, $timeout, moment) {

        $scope.listAction = function() {
            $scope.pageSize = 10;
            $scope.getlist();
            $scope.$on('event:up-store-id', function() {
                $scope.getlist();
            });
        }

        //查询活动列表
        $scope.getlist = function(pageNo) {
            var query = {
                content: {
                    page_no: pageNo ? pageNo : "1",
                    page_size: $scope.pageSize,
                    store_id: $rootScope.store_id,
                }
            };

            dataService.giftGet(query).then(function(r) {
                if (!r.Msg) {
                    $scope.gifts = r.gift_list;
                    $scope.total_count = r.total_count;
                }
            })
        }

        $scope.delete = function(id) {
            if (id) {
                helper.myConfirm("确认删除此文章吗", function() {
                    var data = {
                        'activity_page_id': id
                    };
                    dataService.activitypageDel(data).then(function(result) {
                        if (result.activity_page_id) {
                            // $scope.getList(1);
                            helper.myAlert("success", null, null, function() {
                                $scope.getlist();
                            });
                        } else {
                            helper.myAlert("error:" + result);
                        }
                    });
                });
            }
        }

        $scope.addAction = function() {
            // $scope.savedakaData();
            $scope.gift_id = $location.search().gift_id;
            $scope.acid = random();
            if ($scope.gift_id) {
                dataService.giftOne($scope.gift_id).then(function(r) {
                    if (r) {
                        try {
                            r.desc = JSON.parse(r.desc);
                        } catch (e) {
                            console.error("解析礼物参数失败：", e);
                        }
                        $scope.gift = r;
                        if ($scope.gift.type == 1) {
                            $scope.gift_page_1 = "";
                            $scope.img_num = 0;
                            $scope.setPage = 'dakaform';
                        }
                    }
                })
            } else {
                $scope.gift_page_1 = "";
                $scope.img_num = 0;
                $scope.setPage = 'dakaform';
            }
        }

        $scope.infoAction = function() {
            $scope.gift_id = $location.search().gift_id;
            $scope.type = $location.search().type;
            if ($scope.gift_id) {
                $scope.getGiftInfoList();
            }
        }
        $scope.getGiftInfoList = function(pageNo) {
                var data = {
                    content: {
                        page_no: pageNo ? pageNo : "1",
                        page_size: $scope.page_Size,
                        gift_id: $scope.gift_id,
                        store_id: $rootScope.store_id,
                        start_time: $scope.start_time,
                        end_time: $scope.end_time,
                    }
                }
                dataService.giftdetailsGet(data).then(function(r) {
                    if (!r.Msg) {
                        $timeout(function() {
                            $scope.giftdetails = r.details_list;
                            $scope.total_count = r.total_count;
                            $scope.baobiao();
                        });
                    } else {
                        helper.myAlert("error:" + r.Msg);
                    }
                });
            }
            //数据报表
        $scope.baobiao = function() {
                // console.error(moment().format('YYYY-MM-DD 00:00:00'));
                dataService.giftBaobiao($scope.gift_id, moment().format('YYYY-MM-DD 00:00:00')).then(function(r) {
                    if (r) {
                        $scope.giftnums = r;
                    }
                })
            }
            //核销礼物
        $scope.destroy = function(gift_d_id) {
            helper.myConfirm("确认领取礼物吗？", function() {
                dataService.giftDestroy(gift_d_id).then(function(r) {
                    if (r.gift_d_id) {
                        helper.myAlert("领取成功！");
                        $scope.getGiftInfoList();
                    } else {
                        helper.myAlert(r.Msg);
                    }
                })
            });

        }

        $scope.saveData = function() {
            var data = {
                content: {
                    gift_id: $scope.gift.gift_id,
                    store_id: $rootScope.store_id,
                    name: $scope.gift.name,
                    type: $scope.gift.type,
                    effective: $scope.gift.effective,
                    desc: $scope.gift.desc
                }
            };

            dataService.giftAdd(data).then(function(r) {
                if (!r || r.Msg) {
                    helper.myAlert("error:" + r.Msg);
                } else {
                    helper.myAlert("success", null, null, function() {
                        $state.go("gifts.list");
                    });
                }
            })
        }
        $scope.savedakaData = function() {
            // console.error($scope.gift);return;
            var data = {
                content: {
                    gift_id: $scope.gift.gift_id,
                    // xid: "12124afafdasfdsafsafsa",
                    // store_id: $rootScope.store_id,
                    // member_id:'17080319',
                    // type: 1,
                    // phone:"15169893332",
                }
            };

            dataService.dakaAdd(data).then(function(r) {

            })
        }
        $scope.setDesc = function(type) {
            if (type == 2) {
                $scope.gift.desc = {
                    "answerItems": {
                        "A1": {
                            "name": "伪球迷",
                            "content": "",
                            "img": "https://img.dhfapp.com/static/uploads/a1006e70-57ab-41cc-8d01-32160dbd4120.jpg",
                            "titleColor": "#011132"
                        },
                        "A2": {
                            "name": "墙头草",
                            "content": "",
                            "img": "https://img.dhfapp.com/static/uploads/09e85ff6-f1f9-49ff-8349-7808d50b22c4.jpg",
                            "titleColor": "#011132"
                        },
                        "A3": {
                            "name": "中级球迷",
                            "content": "",
                            "img": "https://img.dhfapp.com/static/uploads/5d42dc9f-1374-49f3-be2b-2d6351d0e689.jpg",
                            "titleColor": "#011132"
                        },
                        "A4": {
                            "name": "铁杆球迷",
                            "content": "",
                            "img": "https://img.dhfapp.com/static/uploads/086daf17-95f2-4b18-be54-ad67c9f470c8.jpg",
                            "titleColor": "#011132"
                        },
                        "A5": {
                            "name": "专业球迷",
                            "content": "",
                            "img": "https://img.dhfapp.com/static/uploads/47ac429a-e7ce-4181-bb91-c2da5b5edef4.jpg",
                            "titleColor": "#011132"
                        },
                        "A6": {
                            "name": "骨灰级球迷",
                            "content": "",
                            "img": "https://img.dhfapp.com/static/uploads/78c02b43-3f48-40fd-8494-fcf492f40a83.jpg",
                            "titleColor": "#011132"
                        },
                        "A7": {
                            "name": "不要老婆球迷",
                            "content": "",
                            "img": "https://img.dhfapp.com/static/uploads/dd7a21db-fdec-420c-a24f-21662bc6df90.jpg",
                            "titleColor": "#011132"
                        }
                    },
                    "topic": [{
                        "id": 1,
                        "problem": "下面哪一只球队参加了此次世界杯",
                        "answerItem": [{
                                "showValue": "意大利队",
                                "showId": "A:",
                                "q_id": 3
                            },
                            {
                                "showValue": "巴拿马队",
                                "showId": "B:",
                                "q_id": 2
                            },
                            {
                                "showValue": "荷兰队",
                                "showId": "C:",
                                "q_id": 3
                            }
                        ]
                    }, {
                        "id": 2,
                        "problem": "下面哪个球星未参加本次世界杯",
                        "answerItem": [{
                                "showValue": "布冯",
                                "showId": "A:",
                                "q_id": 4
                            },
                            {
                                "showValue": "保利尼奥",
                                "showId": "B:",
                                "q_id": 5
                            }, {
                                "showValue": "萨内",
                                "showId": "C:",
                                "q_id": 4
                            }
                        ]
                    }, {
                        "id": 3,
                        "problem": "世界杯总共有多少场比赛",
                        "answerItem": [{
                                "showValue": "63",
                                "showId": "A:",
                                "q_id": 5
                            },
                            {
                                "showValue": "64",
                                "showId": "B:",
                                "q_id": 4
                            }, {
                                "showValue": "62",
                                "showId": "C:",
                                "q_id": 5
                            }
                        ]
                    }, {
                        "id": 4,
                        "problem": "本次俄罗斯世界杯的吉祥物是",
                        "answerItem": [{
                            "showValue": "哈士奇",
                            "showId": "A:",
                            "q_id": 7
                        }, {
                            "showValue": "一匹狼",
                            "showId": "B:",
                            "q_id": 6
                        }, {
                            "showValue": "萨摩耶",
                            "showId": "C:",
                            "q_id": 7
                        }]
                    }, {
                        "id": 5,
                        "problem": "请排列梅西、C罗、内马尔此次杯赛所在的队伍",
                        "answerItem": [{
                            "showValue": "阿根廷、巴西、乌拉圭",
                            "showId": "A:",
                            "q_id": 7
                        }, {
                            "showValue": "巴萨、皇马、巴黎",
                            "showId": "B:",
                            "q_id": 7
                        }, {
                            "showValue": "阿根廷、葡萄牙、巴西",
                            "showId": "C:",
                            "q_id": 6
                        }]
                    }, {
                        "id": 6,
                        "problem": "下面哪一款APP看球最方便",
                        "answerItem": [{
                            "showValue": "乐视APP",
                            "showId": "A:",
                            "q_id": 9
                        }, {
                            "showValue": "360直播",
                            "showId": "B:",
                            "q_id": 8
                        }, {
                            "showValue": "爱奇艺",
                            "showId": "C:",
                            "q_id": 10
                        }]
                    }, {
                        "id": 7,
                        "problem": "梅西、C罗、诺伊尔在足球场比赛上主要用各自身体的哪个部位？",
                        "answerItem": [{
                            "showValue": "左脚、右脚、左脚",
                            "showId": "A:",
                            "q_id": 10
                        }, {
                            "showValue": "左脚、右脚、右脚",
                            "showId": "B:",
                            "q_id": 9
                        }, {
                            "showValue": "左脚、右脚、双手",
                            "showId": "C:",
                            "q_id": 8
                        }]
                    }, {
                        "id": 8,
                        "problem": "对于“主让一球球半”下面解释正确的是",
                        "answerItem": [{
                            "showValue": "如果主队3-1胜出，则主队赢盘",
                            "showId": "A:",
                            "results": {
                                "女": "A7",
                                "男": "A6"
                            }
                        }, {
                            "showValue": "如果主队2-1胜出，则主队赢盘",
                            "showId": "B:",
                            "results": {
                                "女": "A6",
                                "男": "A5"
                            }
                        }, {
                            "showValue": "如果主队1-0胜出，则主队赢盘",
                            "showId": "C:",
                            "results": "A5"
                        }]
                    }, {
                        "id": 9,
                        "problem": "对于越位，下面描述正确的是",
                        "answerItem": [{
                                "showValue": "进攻方传球瞬间，接球球员身后有2名防守队员以上才不算越位",
                                "showId": "A:",
                                "results": "A6"
                            },
                            {
                                "showValue": "如果处在越位位置的球员此次进攻未碰到皮球，均不算越位",
                                "showId": "B:",
                                "results": "A4"
                            }, {
                                "showValue": "角球及界外球均不存在越位",
                                "showId": "C:",
                                "results": "A3"
                            }
                        ]
                    }, {
                        "id": 10,
                        "problem": "关于足球，下面说法正确的是",
                        "answerItem": [{
                            "showValue": "世界杯小组赛比赛中，如果90分钟比分是平局，即将进入点球大战",
                            "showId": "A:",
                            "results": "A2"
                        }, {
                            "showValue": "世界杯决赛比赛中，如果90分钟比分是平局，即将直接i进入点球大战",
                            "showId": "B:",
                            "results": "A2"
                        }, {
                            "showValue": "足球场上每支球队首发10人，其中有1个门将",
                            "showId": "C:",
                            "results": "A1"
                        }, {
                            "showValue": "世界杯获得冠军最多次数的队伍是巴西队",
                            "showId": "D:",
                            "results": "A3"
                        }]
                    }],
                    "bg1": "https://img.alicdn.com/imgextra/i4/20841398/TB2P.LnyKGSBuNjSspbXXciipXa_!!20841398.jpg",
                    "textConfig": {
                        "markPos": [50, 50],
                        "fontSize": 15,
                        "textWidth": 730,
                        "textColor": "#ffffff"
                    },
                    "bg2": "https://img.alicdn.com/imgextra/i4/20841398/TB2kV29yKySBuNjy1zdXXXPxFXa_!!20841398.jpg",
                    "shareTitle": "你也测试一下吧~",
                    "ageConfig": [12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45],
                    "topicTextBg1": "https://img.alicdn.com/imgextra/i1/20841398/TB2u1EByTlYBeNjSszcXXbwhFXa_!!20841398.png",
                    "topicTextBg2": "https://img.alicdn.com/imgextra/i3/20841398/TB2Vd6GiIj_B1NjSZFHXXaDWpXa_!!20841398.png",
                    "topicsize": "font-size:11pt;color:#fff;",
                    "topicTitleSize": "font-size:28px;color:#fff;",
                    "bgColor1": "#010042",
                    "bgColor2": "#153582",
                    "sexCheckedColor": "#ff6259",
                    "topicResultMessage": "你的职场戏精护身符",
                    "topicResultMessNotShow": true,
                    "ZFbtn": "https://img.alicdn.com/imgextra/i3/20841398/TB2jA0YvFOWBuNjy0FiXXXFxVXa_!!20841398.png",
                    "SAVEbtn": "https://img.alicdn.com/imgextra/i4/20841398/TB2Z6lmxCtYBeNjSspaXXaOOFXa_!!20841398.png",
                    "DTbtn": "https://img.alicdn.com/imgextra/i1/20841398/TB21S59vNWYBuNjy1zkXXXGGpXa_!!20841398.png"
                };
            } else if (type == 1) {
                $scope.gift.desc = {
                    "bg1": "https://img.alicdn.com/imgextra/i4/20841398/TB28V98y29TBuNjy1zbXXXpepXa_!!20841398.jpg",
                    "bg2": "https://img.alicdn.com/imgextra/i4/20841398/TB2Dw8qi8smBKNjSZFsXXaXSVXa_!!20841398.jpg",
                    "SAVEwallpaper": ["https://img.alicdn.com/imgextra/i4/20841398/TB2PUHbyY1YBuNjSszeXXablFXa_!!20841398.jpg",
                        "https://img.alicdn.com/imgextra/i4/20841398/TB27zycqOOYBuNjSsD4XXbSkFXa_!!20841398.jpg",
                        "https://img.alicdn.com/imgextra/i4/20841398/TB2dr4jiYZnBKNjSZFGXXbt3FXa_!!20841398.jpg"
                    ],
                    "wallpaper": ["https://img.alicdn.com/imgextra/i4/20841398/TB2PUHbyY1YBuNjSszeXXablFXa_!!20841398.jpg",
                        "https://img.alicdn.com/imgextra/i4/20841398/TB27zycqOOYBuNjSsD4XXbSkFXa_!!20841398.jpg",
                        "https://img.alicdn.com/imgextra/i4/20841398/TB2dr4jiYZnBKNjSZFGXXbt3FXa_!!20841398.jpg"
                    ],
                    "phoneBg": "",
                    "LQLWbtn": "https://img.alicdn.com/imgextra/i2/20841398/TB2TJ9byWSWBuNjSsrbXXa0mVXa_!!20841398.jpg?123",
                    "SAVEIMGbtn": "https://img.alicdn.com/imgextra/i1/20841398/TB28DtOi5QnBKNjSZFmXXcApVXa_!!20841398.png?123",
                    "ZFbtn": "https://img.alicdn.com/imgextra/i1/20841398/TB2pJOkqMKTBuNkSne1XXaJoXXa_!!20841398.png?123",
                    "DTbtn": "",
                    "XCXbtn": "https://img.alicdn.com/imgextra/i2/20841398/TB2sUxUvL9TBuNjy0FcXXbeiFXa_!!20841398.png?123",
                    "titleColor1": "#fdd349",
                    "titleColor2": "#d07efc",
                    "bgColor1": "#fdd349",
                    "bgColor2": "#d07efc"
                }
            } else if (type == 3) {
                $scope.gift.desc = {
                    bg1: "https://img.alicdn.com/imgextra/i1/20841398/TB2hkOAkqQoBKNjSZJnXXaw9VXa_!!20841398.jpg",
                    bgColor1: "#81D8CF",
                    titleColor: "#81D8CF",
                    flop_num: 3,
                    beimian_img: "https://img.alicdn.com/imgextra/i2/20841398/TB2WLT0Dk9WBuNjSspeXXaz5VXa_!!20841398.jpg",
                    zhengmian_img: [{
                        img: "https://img.alicdn.com/imgextra/i1/20841398/TB2lTUjDb1YBuNjSszeXXablFXa_!!20841398.jpg"
                    }, {
                        img: "https://img.alicdn.com/imgextra/i1/20841398/TB2nC5FvwKTBuNkSne1XXaJoXXa_!!20841398.jpg"
                    }, {
                        img: "https://img.alicdn.com/imgextra/i2/20841398/TB2bPhRvviSBuNkSnhJXXbDcpXa_!!20841398.jpg"
                    }, {
                        img: "https://img.alicdn.com/imgextra/i2/20841398/TB27pYQkLImBKNjSZFlXXc43FXa_!!20841398.jpg"
                    }, {
                        img: "https://img.alicdn.com/imgextra/i2/20841398/TB2Tct8kJcnBKNjSZR0XXcFqFXa_!!20841398.jpg"
                    }, {
                        img: "https://img.alicdn.com/imgextra/i1/20841398/TB2yJdvkJknBKNjSZKPXXX6OFXa_!!20841398.jpg"
                    }]
                }
            } else if (type == 4) {
                $scope.gift.desc = {
                    question: [{
                        title: "下面哪个是处女座圣衣",
                        title_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2nmQyXzfguuRjSspkXXXchpXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                        ],
                        imgnumrows: 2,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i2/20841398/TB2mnFCyviSBuNkSnhJXXbDcpXa_!!20841398.png"
                    }, {
                        title: "下面哪个是金牛座圣衣",
                        title_img: "https://img.alicdn.com/imgextra/i4/20841398/TB2VdnpGASWBuNjSszdXXbeSpXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i4/20841398/TB2UvYqHH1YBuNjSszeXXablFXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i1/20841398/TB2rVNYHFGWBuNjy0FbXXb4sXXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2rVNYHFGWBuNjy0FbXXb4sXXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2rVNYHFGWBuNjy0FbXXb4sXXa_!!20841398.jpg?123",

                        ],
                        imgnumrows: 2,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i3/20841398/TB2fK14lHZnBKNjSZFrXXaRLFXa_!!20841398.png"
                    }, {
                        title: "下面哪个是摩羯座圣衣",
                        title_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2vFUAXzfguuRjSszcXXbb7FXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i2/20841398/TB2Mi09HMmTBuNjy1XbXXaMrVXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i2/20841398/TB2F_7oay6guuRjy0FmXXa0DXXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i2/20841398/TB2F_7oay6guuRjy0FmXXa0DXXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i2/20841398/TB2F_7oay6guuRjy0FmXXa0DXXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i2/20841398/TB2F_7oay6guuRjy0FmXXa0DXXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i2/20841398/TB2F_7oay6guuRjy0FmXXa0DXXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i2/20841398/TB2F_7oay6guuRjy0FmXXa0DXXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i2/20841398/TB2F_7oay6guuRjy0FmXXa0DXXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i2/20841398/TB2F_7oay6guuRjy0FmXXa0DXXa_!!20841398.jpg?123",
                        ],
                        imgnumrows: 3,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i3/20841398/TB2HlHmGQCWBuNjy0FaXXXUlXXa_!!20841398.png"
                    }, {
                        title: "下面哪个是狮子座圣衣",
                        title_img: "https://img.alicdn.com/imgextra/i2/20841398/TB2aG.CXy6guuRkSmLyXXculFXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123"
                        ],
                        imgnumrows: 3,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i4/20841398/TB26aK7GKSSBuNjy0FlXXbBpVXa_!!20841398.png"
                    }, {
                        title: "下面哪个是天秤座",
                        title_img: "https://img.alicdn.com/imgextra/i4/20841398/TB2pESMGFuWBuNjSszbXXcS7FXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2rVNYHFGWBuNjy0FbXXb4sXXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i1/20841398/TB2B1B9zBmWBuNkSndVXXcsApXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2B1B9zBmWBuNkSndVXXcsApXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2B1B9zBmWBuNkSndVXXcsApXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2B1B9zBmWBuNkSndVXXcsApXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2B1B9zBmWBuNkSndVXXcsApXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2B1B9zBmWBuNkSndVXXcsApXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2B1B9zBmWBuNkSndVXXcsApXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2B1B9zBmWBuNkSndVXXcsApXa_!!20841398.jpg?123",

                        ],
                        imgnumrows: 3,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2lHc2yhuTBuNkHFNRXXc9qpXa_!!20841398.png"
                    }, {
                        title: "下面哪个是天蝎座",
                        title_img: "https://img.alicdn.com/imgextra/i2/20841398/TB2_XsuGNWYBuNjy1zkXXXGGpXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                        ],
                        imgnumrows: 4,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i3/20841398/TB2S1SZGL9TBuNjy1zbXXXpepXa_!!20841398.png"
                    }, {
                        title: "下面哪个是双鱼座",
                        title_img: "https://img.alicdn.com/imgextra/i4/20841398/TB2GvmDywKTBuNkSne1XXaJoXXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2MduuHKOSBuNjy0FdXXbDnVXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                        ],
                        imgnumrows: 4,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2nOljGGSWBuNjSsrbXXa0mVXa_!!20841398.png"
                    }, {
                        title: "下面哪个是白羊座",
                        title_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2yeuCGL9TBuNjy0FcXXbeiFXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i2/20841398/TB2YwD8HQSWBuNjSszdXXbeSpXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                        ],
                        imgnumrows: 4,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i4/20841398/TB2OKuaGL5TBuNjSspcXXbnGFXa_!!20841398.png"
                    }, {
                        title: "下面哪个是巨蟹座",
                        title_img: "https://img.alicdn.com/imgextra/i3/20841398/TB25YToGN9YBuNjy0FfXXXIsVXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2B1B9zBmWBuNkSndVXXcsApXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                        ],
                        imgnumrows: 5,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i3/20841398/TB2vzDtGQCWBuNjy0FaXXXUlXXa_!!20841398.png"
                    }, {
                        title: "下面哪个是射手座圣衣",
                        title_img: "https://img.alicdn.com/imgextra/i3/20841398/TB2N.U6yhuTBuNkHFNRXXc9qpXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i2/20841398/TB2F_7oay6guuRjy0FmXXa0DXXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                        ],
                        imgnumrows: 5,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i4/20841398/TB2UK40lGAoBKNjSZSyXXaHAVXa_!!20841398.png"
                    }, {
                        title: "下面哪个是双子座圣衣",
                        title_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2gKlmyyCYBuNkSnaVXXcMsVXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB28ekMzhuTBuNkHFNRXXc9qpXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                        ],
                        imgnumrows: 6,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i2/20841398/TB2zF_wGL5TBuNjSspmXXaDRVXa_!!20841398.png"
                    }, {
                        title: "下面哪个是水瓶座",
                        title_img: "https://img.alicdn.com/imgextra/i1/20841398/TB26IAgGNGYBuNjy0FnXXX5lpXa_!!20841398.png",
                        success_img: "https://img.alicdn.com/imgextra/i4/20841398/TB2fdrfHQCWBuNjy0FaXXXUlXXa_!!20841398.jpg?123",
                        error_imgs: ["https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2mX6OziCYBuNkHFCcXXcHtVXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i1/20841398/TB2Q_7lazfguuRjSszcXXbb7FXa_!!20841398.jpg?123",
                            "https://img.alicdn.com/imgextra/i3/20841398/TB2378szsyYBuNkSnfoXXcWgVXa_!!20841398.jpg?123",

                        ],
                        imgnumrows: 6,
                        endTime: 30,
                        zhuangshi_img: "https://img.alicdn.com/imgextra/i3/20841398/TB2iIEgGNGYBuNjy0FnXXX5lpXa_!!20841398.png"
                    }],
                    bg1: "https://img.alicdn.com/imgextra/i1/20841398/TB27MxgyiOYBuNjSsD4XXbSkFXa_!!20841398.jpg",
                    ok_num: 12,
                    result_err_imgs: ["https://img.alicdn.com/imgextra/i3/20841398/TB2DKwGGHGYBuNjy0FoXXciBFXa_!!20841398.jpg?111",
                        "https://img.alicdn.com/imgextra/i1/20841398/TB2oUQoyByWBuNkSmFPXXXguVXa_!!20841398.jpg?111",
                        "https://img.alicdn.com/imgextra/i2/20841398/TB2_Nx4lQZmBKNjSZPiXXXFNVXa_!!20841398.jpg?111",
                        "https://img.alicdn.com/imgextra/i2/20841398/TB2lJE1GHSYBuNjSspiXXXNzpXa_!!20841398.jpg?111",
                        "https://img.alicdn.com/imgextra/i4/20841398/TB2wq_4GMmTBuNjy1XbXXaMrVXa_!!20841398.jpg?111",
                    ],
                    result_ok_imgs: ["https://img.alicdn.com/imgextra/i4/20841398/TB2JPRcG1uSBuNjSsziXXbq8pXa_!!20841398.jpg?111",
                        "https://img.alicdn.com/imgextra/i4/20841398/TB2DWssGL9TBuNjy0FcXXbeiFXa_!!20841398.jpg?111",
                        "https://img.alicdn.com/imgextra/i1/20841398/TB2Cs_qyviSBuNkSnhJXXbDcpXa_!!20841398.jpg?111",
                        "https://img.alicdn.com/imgextra/i4/20841398/TB203AXyvuSBuNkHFqDXXXfhVXa_!!20841398.jpg?111",
                        "https://img.alicdn.com/imgextra/i4/20841398/TB2M4qlXO6guuRkSmLyXXculFXa_!!20841398.jpg?111",
                    ],
                    titleColor3: "#000000",
                    err_background_img: "https://img.alicdn.com/imgextra/i3/20841398/TB2LYnmGKuSBuNjSsziXXbq8pXa_!!20841398.jpg",
                    ok_background_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2StUwXzbguuRkHFrdXXb.LFXa_!!20841398.jpg",
                    ZFbtn: "https://img.alicdn.com/imgextra/i1/20841398/TB2_fR3GVOWBuNjy0FiXXXFxVXa_!!20841398.png?123",
                    SAVEIMGbtn: "https://img.alicdn.com/imgextra/i1/20841398/TB2s_hiyLuSBuNkHFqDXXXfhVXa_!!20841398.png?123",
                    DTbtn: "https://img.alicdn.com/imgextra/i2/20841398/TB2rRLkG4WYBuNjy1zkXXXGGpXa_!!20841398.png?123",
                    titleColor1: "#fdd349",
                    titleColor2: "#000000",
                    ok_title_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2oGbMyOOYBuNjSsD4XXbSkFXa_!!20841398.png?222",
                    err_title_img: "https://img.alicdn.com/imgextra/i1/20841398/TB2rzpkHeySBuNjy1zdXXXPxFXa_!!20841398.png?333",
                    modal_img: "https://img.alicdn.com/imgextra/i4/20841398/TB2w3h7H1uSBuNjy1XcXXcYjFXa_!!20841398.jpg?333",
                    modal_result_img: "https://img.alicdn.com/imgextra/i2/20841398/TB2QumEH1OSBuNjy0FdXXbDnVXa_!!20841398.jpg?222",
                    ok_img_border_margin: "#bd9a64",
                    ok_img_border_padding_left: "#fff7fd",
                    ok_img_border_padding_top: "#e7bd4d",
                    err_img_border_margin: "#e3e3e3",
                    err_img_border_padding_left: "#ffffff",
                    err_img_border_padding_top: "#98979d"
                }

            } else if (type == 5) {
                $scope.gift.desc = {
                    "answerItems": {
                        "A1": {
                            "name": "【升职加薪符】",
                            "content": "",
                            "showimg": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9wYUZ3sjwkG_!!20841398.jpg",
                            "img": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9tLKbZd8PtY_!!20841398.jpg?567", //带码
                            // "img": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9z0XPGMVBXW_!!20841398.jpg?456",
                            "titleColor": "#e7544d"
                        },
                        "A2": {
                            "name": "【烦恼退散符】",
                            "content": "",
                            "showimg": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9yO705yA5tn_!!20841398.jpg",
                            "img": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9ur7GmZDIp8_!!20841398.jpg?567", //带码
                            // "img": "https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9zEouuOsjeV_!!20841398.jpg?456",
                            "titleColor": "#50bfed"
                        },
                        "A3": {
                            "name": "【复方水逆符】",
                            "content": "",
                            "showimg": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9sEXQ13nrTD_!!20841398.jpg?123",
                            "img": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9vpkPlDt2ef_!!20841398.jpg?567", //带码
                            // "img": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCKA01iRs0WrOs_!!20841398.jpg?456",
                            "titleColor": "#f3bbd4"
                        },
                        "A4": {
                            "name": "【BOSS休假符】",
                            "content": "",
                            "showimg": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9zTUK5nDbEu_!!20841398.jpg",
                            "img": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9v3v4KxcFQC_!!20841398.jpg?567", //带码
                            // "img": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9z0WT6wz3MR_!!20841398.jpg?456",
                            "titleColor": "#f8cd43"
                        },
                        "A5": {
                            "name": "【加班退散符】",
                            "content": "",
                            "showimg": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9yfMVBIw5Es_!!20841398.jpg",
                            "img": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9ur8H8x9gsP_!!20841398.jpg?567",
                            //"img":"https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9z0WwAtmtuo_!!20841398.jpg?456"
                            "titleColor": "#aa82b7"
                        },
                    },
                    "topic": [{
                        "id": 1,
                        "problem": "每天上班你是怎么样的状态？",
                        "problem_img": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9wFBGsNBJBR_!!20841398.png?123",
                        "answerItem": [{
                                "showValue": "成年人的智慧就是要不早不晚",
                                "showId": "A:",
                                "q_id": 3
                            },
                            {
                                "showValue": "垂死梦中惊坐起，专注迟到三十年",
                                "showId": "B:",
                                "q_id": 2
                            },
                            {
                                "showValue": "不想第一个进办公室的员工不是好员工",
                                "showId": "C:",
                                "q_id": 3
                            }
                        ]
                    }, {
                        "id": 2,
                        "problem": "同事总是拜托你超出自己范围的工作，你会？",
                        "problem_img": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9vBjNbqYI1G_!!20841398.png?123",
                        "answerItem": [{
                                "showValue": "直接Say No",
                                "showId": "A:",
                                "q_id": 4
                            },
                            {
                                "showValue": "跟上级主管哭诉",
                                "showId": "B:",
                                "q_id": 5
                            }, {
                                "showValue": "得罪不起，从了吧",
                                "showId": "C:",
                                "q_id": 4
                            }
                        ]
                    }, {
                        "id": 3,
                        "problem": "你觉得下面哪项应该算工伤",
                        "problem_img": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9tg8nYzfLzO_!!20841398.png?123",
                        "answerItem": [{
                                "showValue": "脱发",
                                "showId": "A:",
                                "q_id": 5
                            },
                            {
                                "showValue": "过劳肥",
                                "showId": "B:",
                                "q_id": 4
                            }, {
                                "showValue": "单身",

                                "showId": "C:",
                                "q_id": 5
                            }
                        ]
                    }, {
                        "id": 4,
                        "problem": "下午茶提神醒脑时间，会选择",
                        "problem_img": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9v3urpgVU2U_!!20841398.png?123",
                        "answerItem": [{
                            "showValue": "我是陈独秀，坚决不吃",
                            "showId": "A:",
                            "q_id": 7
                        }, {
                            "showValue": "奶茶一生推，戒不掉的反式脂肪酸",
                            "showId": "B:",
                            "q_id": 6
                        }, {
                            "showValue": "咖啡提神又开脑，日饮三杯就餐",
                            "showId": "C:",
                            "q_id": 7
                        }]
                    }, {
                        "id": 5,
                        "problem": "加班到深夜，你会选择哪种宵夜",
                        "problem_img": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9v3tBwiXvrh_!!20841398.png?123",
                        "answerItem": [{
                            "showValue": "泡面最懂夜的黑",
                            "showId": "A:",
                            "q_id": 7
                        }, {
                            "showValue": "小龙虾才给我安慰",
                            "showId": "B:",
                            "q_id": 7
                        }, {
                            "showValue": "大排档会带走疲累",
                            "showId": "C:",
                            "q_id": 6
                        }]
                    }, {
                        "id": 6,
                        "problem": "你希望自己的办公地",
                        "problem_img": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9p2nLLVZ6D8_!!20841398.png?123",
                        "answerItem": [{
                            "showValue": "落地窗俯瞰全景",
                            "showId": "A:",
                            "q_id": 9
                        }, {
                            "showValue": "巨大的办公桌",
                            "showId": "B:",
                            "q_id": 8
                        }, {
                            "showValue": "安静，静静的思考",
                            "showId": "C:",
                            "q_id": 10
                        }]
                    }, {
                        "id": 7,
                        "problem": "终于休假啦！你选择",
                        "problem_img": "https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9wd3vjkLcuJ_!!20841398.png?123",
                        "answerItem": [{
                            "showValue": "打游戏刷剧睡觉，做个快乐的肥宅",
                            "showId": "A:",
                            "q_id": 10
                        }, {
                            "showValue": "旅行！世界我来啦！",
                            "showId": "B:",
                            "q_id": 9
                        }, {
                            "showValue": "逛街吃饭电影健身，积极利用假期",
                            "showId": "C:",
                            "q_id": 8
                        }]
                    }, {
                        "id": 8,
                        "problem": "你最想拥有哪种职场超能力？",
                        "problem_img": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9vdEwFCWzve_!!20841398.png?123",
                        "answerItem": [{
                            "showValue": "一天搞定10个PPT，晚上还能撸铁跑个步",
                            "showId": "A:",
                            "results": "A1"
                                // "results": {
                                //     "女": "A7",
                                //     "男": "A6"
                                // }
                        }, {
                            "showValue": "遇到的都是靠谱人，戏精别跟我演宫心计",
                            "showId": "B:",
                            "results": "A2"
                        }, {
                            "showValue": "跑偏的工作可以NG，老板再相信我一次",
                            "showId": "C:",
                            "results": "A3"
                        }]
                    }, {
                        "id": 9,
                        "problem": "下面几件事，你最讨厌哪一件事的发生",
                        "problem_img": "https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9vK3rJBFTcJ_!!20841398.png?123",
                        "answerItem": [{
                                "showValue": "工作群提示“有人@你”",
                                "showId": "A:",
                                "results": {
                                    "男": "A4",
                                    "女": "A2"
                                }
                            },
                            {
                                "showValue": "甲方爸爸：“还是用第一版吧”",
                                "showId": "B:",
                                "results": "A3"
                            }, {
                                "showValue": "没点保存电脑蓝屏",
                                "showId": "C:",
                                "results": "A5"
                            }
                        ]
                    }, {
                        "id": 10,
                        "problem": "老板更新了朋友圈，你会",
                        "problem_img": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9vdFfuLHQnu_!!20841398.png?123",
                        "answerItem": [{
                            "showValue": " 第一个点赞并评论",
                            "showId": "A:",
                            "results": "A1"
                        }, {
                            "showValue": "不想收到重复提醒，晚点再点赞",
                            "showId": "B:",
                            "results": {
                                "男": "A2",
                                "女": "A3"
                            }
                        }, {
                            "showValue": "哈？老板有发朋友圈么？",
                            "showId": "C:",
                            "results": "A5"
                        }]
                    }],
                    "bg1": "https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9vRWvAdL2br_!!20841398.jpg?123",
                    "textConfig": {
                        "markPos": [120, 115],
                        "fontSize": 28,
                        "textWidth": 570,
                        "textColor": "#000000"
                    },
                    "topic_icon": {
                        "A:": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9uZF8zyrZ6o_!!20841398.png?123",
                        "B:": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9u7ZNrT9J1m_!!20841398.png?123",
                        "C:": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9u7ZNrT9J1m_!!20841398.png?123",
                    },
                    "bg2": "https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9uZEwVIerfB_!!20841398.jpg?123",
                    "shareTitle": "你也测试一下吧~",
                    "ageConfig": [12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45],
                    "topicTextBg1": "https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9vMcU7SirzF_!!20841398.png?123",
                    "topicTextBg2": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9vRWSAhKwTT_!!20841398.png?123",
                    "topicsize": "font-size:15pt;color:#1A1A1A;",
                    "topicTitleSize": "font-size:28px;color:#fff;",
                    "topicPageSize": {
                        1: {
                            pageIcon: "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9x4a8elHjFL_!!20841398.png?123",
                            pageImg: "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9uUpgxR5oiX_!!20841398.png?123"
                        },
                        2: {
                            pageIcon: "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9wRUAnjkTfZ_!!20841398.png?123",
                            pageImg: "https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9wUJWczhy7O_!!20841398.png?123"
                        },
                        3: {
                            pageIcon: "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9wUImuUdCNK_!!20841398.png?123",
                            pageImg: "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9uUoU8cdjXx_!!20841398.png?123"
                        },
                        4: {
                            pageIcon: "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9wUJ7haMSKV_!!20841398.png?123",
                            pageImg: "https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9vsIplN4iQO_!!20841398.png?123"
                        },
                        5: {
                            pageIcon: "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9vflPY2oJ3a_!!20841398.png?123",
                            pageImg: "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9uUnkS9RbUW_!!20841398.png?123"
                        },
                    },
                    "nanBtn": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9uZEbnjFoHD_!!20841398.png?123",
                    "nvBtn": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9wd5sGiQm2l_!!20841398.png?123",
                    "nanBtnChecked": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9pDMVL5eHac_!!20841398.png?123",
                    "nvBtnChecked": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9vUfNFnUqSR_!!20841398.png?123",
                    "agechoiceImg": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9v3uw3WZlaz_!!20841398.png?123",
                    "bgColor1": "#c68ebd",
                    "bgColor2": "#f2d651",
                    "sexCheckedColor": "#ff6259",
                    "topicResultMessage": "",
                    "topicResultMessNotShow": false,
                    "ZFbtn": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9tg8jUXUJml_!!20841398.png?123",
                    "SAVEbtn": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9ur7jricL21_!!20841398.png?123",
                    "DTbtn": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9uZFkP4cn7s_!!20841398.png?123",
                    "openxcx": [{
                        id: "openxcx",
                        name: "打开其他小程序",
                        en: "openxcx",
                        data: [{
                                "name": "xcxappid",
                                "type": "string",
                                "title": "小程序(有限制，具体咨询客服)",
                                "value": "wxd901c5c19f4a620d"
                            }, {
                                "name": "minicon",
                                "type": "image",
                                "title": "小图标",
                                "value": "https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9xpgwGodFJb_!!20841398.png?123",
                            }, {
                                "name": "title",
                                "type": "string",
                                "title": "提示文字(或者是小程序名字)",
                                "value": "大悦城首页"
                            }, {
                                "name": "maxwidth",
                                "type": "number",
                                "title": "展示小程序名字最大宽度",
                                "value": 80
                            },
                            {
                                "name": "contentheight",
                                "type": "number",
                                "title": "图片高度",
                                "value": 30
                            },
                            {
                                "name": "fontSize",
                                "type": "number",
                                "title": "小程序名字字体大小(单位pt)",
                                "value": 9
                            },
                            {
                                "name": "positionTop",
                                "type": "number",
                                "title": "浮动距离顶部位置",
                                "value": 150
                            },
                            {
                                "name": "isBottom",
                                "type": "bool",
                                "title": "是否从底部浮动",
                                "value": 1
                            }, {
                                "name": "positionLeftRight",
                                "type": "number",
                                "title": "浮动距离左右边位置",
                                "value": 0
                            },
                            {
                                "name": "isLeft",
                                "type": "bool",
                                "title": "是否从左开始浮动",
                                "value": 0
                            },
                            {
                                "name": "borderTopLeftRadius",
                                "type": "number",
                                "title": "左上角边框角度(值越大越圆)",
                                "value": 30
                            },
                            {
                                "name": "borderTopRightRadius",
                                "type": "number",
                                "title": "右上角边框角度(值越大越圆)",
                                "value": 0
                            },
                            {
                                "name": "borderBottomLeftRadius",
                                "type": "number",
                                "title": "左下角边框角度(值越大越圆)",
                                "value": 30
                            },
                            {
                                "name": "borderBottomRightRadius",
                                "type": "number",
                                "title": "右下角边框角度(值越大越圆)",
                                "value": 0
                            },
                            {
                                "name": "paddingTop",
                                "type": "number",
                                "title": "上内边距",
                                "value": 10
                            },
                            {
                                "name": "paddingBottom",
                                "type": "number",
                                "title": "下内边距",
                                "value": 10
                            },
                            {
                                "name": "paddingLeft",
                                "type": "number",
                                "title": "左内边距",
                                "value": 10
                            },
                            {
                                "name": "paddingRight",
                                "type": "number",
                                "title": "右内边距",
                                "value": 10
                            },
                            {
                                "name": "backgroundColor",
                                "type": "color",
                                "title": "背景颜色",
                                "value": "#fbfbfb"
                            },
                            {
                                "name": "fontColor",
                                "type": "color",
                                "title": "文字颜色",
                                "value": "#000000"
                            }
                        ]
                    }]
                };
            } else if (type == 6) {
                $scope.gift.desc = {
                    "bg1": "https://img.alicdn.com/imgextra/i1/20841398/O1CN011MCK9w7w2Titzej_!!20841398.jpg?123",
                    "bg2": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9vXjkKzRcmE_!!20841398.jpg?123",
                    "SAVEwallpaper": [
                        "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9uModGdTY7a_!!20841398.jpg?789",
                        "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9uModGdTY7a_!!20841398.jpg?789",
                        // "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9z7XtlYu7H8_!!20841398.jpg",
                        // "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9z7XtlYu7H8_!!20841398.jpg", //不打码
                    ],
                    "wallpaper": [
                        "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9uModGdTY7a_!!20841398.jpg?789",
                        "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9uModGdTY7a_!!20841398.jpg?789",
                        // "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9z7XtlYu7H8_!!20841398.jpg",
                        // "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9z7XtlYu7H8_!!20841398.jpg", //不打码
                    ],
                    "phoneInputBg": "https://img.alicdn.com/imgextra/i2/20841398/O1CN011MCK9vsLzaC4xBd_!!20841398.png?123",
                    "phoneBg": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9unnpEasgC5_!!20841398.png?123",
                    "LQLWbtn": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9ur6Oj8iTnJ_!!20841398.png?123",
                    "SAVEIMGbtn": "https://img.alicdn.com/imgextra/i3/20841398/O1CN011MCK9vK4b1Q0a26_!!20841398.png?123",
                    "ZFbtn": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9vpjoONzBSi_!!20841398.png?123",
                    "DTbtn": "https://img.alicdn.com/imgextra/i4/20841398/O1CN011MCK9wd64lJ88Ru_!!20841398.png?123",
                    "XCXbtn": "https://img.alicdn.com/imgextra/i2/20841398/TB2sUxUvL9TBuNjy0FcXXbeiFXa_!!20841398.png?123",
                    "titleColor1": "#70bfe3",
                    "titleColor2": "#f2d651",
                    "bgColor1": "#70bfe3",
                    "bgColor2": "#f2d651",
                    "isChaiFenDtBtn": true,
                }
            }
        }
        $scope.addArray = function(arrayName, isAddObj) {
            if ($scope.gift && $scope.gift.desc && (!$scope.gift.desc[arrayName])) {
                $scope.gift.desc[arrayName] = [];
            }
            if ($scope.gift && $scope.gift.desc && !isAddObj) {
                $scope.gift.desc[arrayName].push("");
            } else if ($scope.gift && $scope.gift.desc && isAddObj) {
                $scope.gift.desc[arrayName].push({});
            }
            console.error("gift", $scope.gift);
        }
        $scope.childArray = function(arrayName, index, childName) {
            // console.error("arrayName", $scope.gift.desc[arrayName], $scope.gift.desc[arrayName][index][childName]);
            if (_.isNumber(index) && $scope.gift.desc[arrayName][index][childName] && _.isArray($scope.gift.desc[arrayName][index][childName])) {
                $scope.gift.desc[arrayName][index][childName].push("");
            } else {
                $scope.gift.desc[arrayName][index][childName] = [];
                $scope.gift.desc[arrayName][index][childName].push("");
            }
        }
        $scope.spliceChildArray = function(arrayName, index, childName, childindex) {
            console.error("index", index, childindex);
            if (_.isNumber(index) && $scope.gift.desc[arrayName][index][childName] && _.isArray($scope.gift.desc[arrayName][index][childName]) && $scope.gift.desc[arrayName][index][childName].length > 0) {
                $scope.gift.desc[arrayName][index][childName].splice(childindex, 1);
            }
        }
        $scope.spliceArray = function(arrayName, index) {
            console.error("index", index);
            if ($scope.gift && $scope.gift.desc && $scope.gift.desc[arrayName] && $scope.gift.desc[arrayName].length) {
                $scope.gift.desc[arrayName].splice(index, 1);
                console.error("gift", $scope.gift);
            }
        }
        $scope.daduiJsonAdd = function() {

        }
        $scope.setCurrentPage = function(name) {
                $scope.setPage = name;
            }
            //tab切换
        $scope.tabCut = function($event) {
            $event.preventDefault();
            $($event.currentTarget).tab('show');
        }
    }
})();